package data.wg;


public class WGCombatant extends AbstractWoTCWBotListEntity implements Comparable<WGCombatant>
{

	public String name;
	public Long at;
	public WGCombatant(String name)
	{
		this.name=name;
	}
	@Override
	public int compareTo(WGCombatant o) {
		return at.compareTo(o.at);
	}
	
	@Override
	public boolean equals(Object o)
	{
		if(o instanceof WGCombatant)
		{
			WGCombatant c= (WGCombatant)o;
			if(c.name.equals(name))
			{
				if(at==null)
				{
					if(c.at==null)
					{
						return true;
					}
				}
				if(at!=null)
				{
					if(c.at!=null)
					{
						return at.equals(c.at);
					}
				}
			}
		}
		return false;
	}

}
